#ifndef __LIGHT_CONTROL_H
#define __LIGHT_CONTROL_H

#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#define PORT 7000
#define SERVERIP "127.0.0.1"

typedef struct
{
        int sock;
        int connected;
        int status;
} lightconn;

lightconn * light_init();

void lighton(lightconn * c, int d);
void lightoff(lightconn * c, int d);

void light_destroy(lightconn * c);

#endif
